export default defineEventHandler(async (event) => {
  const config = useRuntimeConfig();
  try {
    const result = await fetch(config.public.apiBaseUrl + "/api/filelist");
    return result.json();
  } catch (error) {
    console.error(error);
    return error;
  }
});
